package ClassAndObject;

public class DemoPhoneObjectReturn {
    public static void main(String[] args) {
        Phone two = getPhone();
        System.out.println(two.brand);

    }
    public static Phone getPhone(){
        Phone one = new Phone();
        one.brand ="苹果";
        one.price=8388.0;
        one.color="黑色";
        return one;
    }
}
